<?php
namespace app\admin\validate;

use think\Validate;

class Admin extends Validate {
    protected $rule    = [
        'admin_username' => 'require',
        'admin_pwd'      => 'require',
        'code'           => 'require|captcha'
    ];
    protected $message = [
        'admin_username.require' => '请输入用户名',
        'admin_pwd.require'      => '请输入密码',
        'code.require'           => '请输入验证码',
        'code.captcha'           => '验证码不正确'
    ];
}